﻿namespace InfluxDB.Flurl
{
    public class BucketEntity
    {
        public string id { get; set; }

        public string name { get; set; }

        public string orgID { get; set; }

        public List<BucketRuleEntity> retentionRules { get; set; }

        public string rp { get; set; } = "0";

        public string schemaType { get; set; } = "implicit";

        public string type { get; set; }

    }


    public class BucketRuleEntity
    {
        public int everySeconds { get; set; } = 86400;

        public int shardGroupDurationSeconds { get; set; }

        public string type { get; set; } = "expire";
    }

}
